﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Client.ServiceReference1;

namespace Client
{
    class Program
    {
        static void Main(string[] args)
        {
            ChannelFactory<IService1> cf = new ChannelFactory<IService1>("BasicHttpBinding_IService1");
            var channel = cf.CreateChannel();
            var list = channel.GetData(2);
            Console.WriteLine(list);

            Service1Client client = new Service1Client("BasicHttpBinding_IService1");
            
    
        }
    }
}
